package com.fzy.common.file.pdf.component;

import com.itextpdf.text.Document;
import com.itextpdf.text.Font;
import com.itextpdf.text.pdf.PdfTemplate;
import com.itextpdf.text.pdf.PdfWriter;

public interface IHeaderFooter {

	/**
	 * @description 写页眉
	 */
	void writeHeader(PdfWriter writer, Document document, Object data, Font font, PdfTemplate template);

	/**
	 * @description 写页脚
	 */
	void writeFooter(PdfWriter writer, Document document, Object data, Font font, PdfTemplate template);

	/**
	 * @description 关闭文档前,获取替换页眉页脚处设置模板的文本
	 */
	String getReplaceOfTemplate(PdfWriter writer, Document document, Object data);

}
